package com.lfsenior.broker;

import org.apache.activemq.broker.BrokerService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by dlupan on 2018/11/1
 */
public class SpringBroker {
    public static void main(String[] args) throws Exception{

        ClassPathXmlApplicationContext content = new ClassPathXmlApplicationContext("application.xml");
        /*//  方式一：配置BrokerService
        //  获取Broker实例
        BrokerService broker = (BrokerService) content.getBean("broker");
        //  启动broker
        broker.start();*/





    }
}
